package org.ruanjj.designmodel.decoratormodel;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class Main {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        BoboTea boboTea = new BoboTea();
        Pearl pearl = new Pearl(boboTea);
        System.out.println(pearl.getName());
        System.out.println(pearl.getPrice());
    }
}
